package com.um.psystem.mapper.platform.faultManageMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: AiLen2E
 * @Date: 2021/12/21 10:52
 * @version: 1.0
 */
@Mapper
public interface IFaultUnitMapper {

    Integer addUnit(@Param("fid")Integer fid,@Param("type_dtl_id")Integer type_dtl_id,@Param("unitcount")Integer unitcount);

    Integer addUnitFromBat(@Param("unit_list") List<Map<String,Object>> list);

    Integer removeUnit (@Param("id")Integer id);

    Integer removeUnitByFaultId (@Param("faultid")Integer faultid);

    Integer changeUnit(@Param("id") Integer id,@Param("type_dtl_id") Integer type_dtl_id,@Param("unitcount") Integer unitcount);

    List<Map<String,Object>> getUnitList(Map map);

    List<Map<String,Object>> getTypeDtlList(Map map);
}
